Skip to content

np.NaN -> np.nan (Error) - #1688

Open
dashirov wants to merge 1 commit into
ourownstory:mainfrom
dashirov:main
Open

np.NaN -> np.nan (Error)#1688
dashirov wants to merge 1 commit into
ourownstory:mainfrom
dashirov:main

Conversation

@dashirov

@dashirov dashirov commented Apr 1, 2025

Copy link
Copy Markdown

np.NaN -> np.nan (Error)
view(dtype) -> astype(dtype) (Warning)

🔬 Background

  • Numpy obsoleted use of np.NaN in favor of np.nan
  • Pandas deprecated use of view() in favor of astype()

🔮 Key changes

  • Eliminated runtime errors and warnings by following dependency package maintainer's suggestions

📋 Review Checklist

  • I have performed a self-review of my own code.
  • I have commented my code, added docstrings and data types to function definitions.
  • I have added pytests to check whether my feature / fix works.

Please make sure to follow our best practices in the Contributing guidelines.

view(dtype) -> astype(dtype) (Warning)
@vreoo

vreoo commented Jun 21, 2025

Copy link
Copy Markdown

@ourownstory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants